<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
	'braintec.' . $_EXTKEY,
	'Kontaktformular',
	array(
		'Kontaktformular' => 'list, , send',
		
	),
	// non-cacheable actions
	array(
		'Kontaktformular' => 'send',
		
	)
);


//require_once t3lib_extMgm::extPath('pt_extbase') . 'Classes/Utility/AjaxDispatcher.php';

//Connect to database
//tslib_eidtools::connectDB();


// Init TSFE for database access
//$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe', $TYPO3_CONF_VARS, 0, 0, true);
//$GLOBALS['TSFE']->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
//$GLOBALS['TSFE']->initFEuser();
//$dispatcher = t3lib_div::makeInstance('Tx_PtExtbase_Utility_AjaxDispatcher'); /** @var $dispatcher Tx_PtExtbase_Utility_AjaxDispatcher */

// ATTENTION! Dispatcher first needs to be initialized here!!!
//echo $dispatcher->initCallArguments()->dispatch();


$TYPO3_CONF_VARS['FE']['eID_include']['kontaktform'] = t3lib_extMgm::extPath('kontaktformular').'Classes/Controller/AjaxController.php';

?>